package com.ruibang.glass.job.constant;

public class FileErrorCode {
	
	public enum ErrorCode{
		
		UPLOAD_FILE_IS_FAILED(100050200,"文件上次失败"),
		FILE_IS_NOT_EXIST(100050201,"文件不存在,请检查");


		private int code;
		private String msg;

		ErrorCode(int code, String msg) {
		   this.code = code;
		   this.msg = msg;
		}
		public String getMsg() {
		   return msg;
		}
		public int getCode() {
		   return code;
		}

		public static String getValue(int code) {
			for (ErrorCode ele : values()) {
				if(ele.getCode() == code) return ele.getMsg();
			}
			return null;
		}
	}

}
